package com.sino.operation.util;

import com.sino.operation.param.out.EscReceiveInquireByCounterParam;
import com.sino.operation.param.out.EscReciveByCounter;
import com.sino.operation.peripheral.esc.request.EscAppHead;
import com.sino.operation.peripheral.esc.request.EscSysHead;
import com.sino.operation.peripheral.esc.request.LocalHead;
import com.sino.operation.peripheral.esc.response.*;

import java.util.ArrayList;

/**
 * @ClassName EscResTest
 * @Description TOD
 * @Author 北陈
 * @Date 2021/10/18 18:07
 * @Version 1.0
 */
public class EscResTest {

    public static EscResponseDto getEscReponse( ){
        EscSysHead escResSysHead=
        EscSysHead.builder().serviceCode("NCBS.01000001").serviceScene("01")
                .consumerId("01").consumerSeqNo("IBSS201123000000000100")
                .bussSeqNo("G111102102030000000001").orgSysId("IBSS").tranDate("20211018")
                .tranTimestamp("162930").build();
        EscRet escRet = new EscRet();
        escRet.setRetCode("000000");
        escRet.setRetMsg("交易成功");
        ArrayList<EscRet> escRets = new ArrayList<>();
        escRets.add(escRet);
      /*  escResSysHead.setRets(escRets);*/
        EscAppHead escResAppHead = EscAppHead.builder().userId("9999999").build();
        LocalHead localResHead = LocalHead.builder().reqTenant("9999999").build();
        CoreResHead coreResHead = CoreResHead.builder().reqResFlg("req").build();
        EscResBody escResBody = new EscResBody();
        escResBody.setCoreResHead(coreResHead);
        EscResponseDto escResponseDto = EscResponseDto.builder().escSysHead(escResSysHead).escAppHead(escResAppHead).localHead(localResHead).escResBody(escResBody).build();
 /*       EscResponseDto escResponseDto = new EscResponseDto();
        escResponseDto.setEscAppHead(receiveInquireByCounterParam.getEscAppHead());
        escResponseDto.setEscSysHead(receiveInquireByCounterParam.getEscSysHead());
        escResponseDto.setLocalHead(receiveInquireByCounterParam.getLocalHead());*/
        return escResponseDto;
    }

/*    public  static EscResponseDto EscResponseDto(EscReciveByCounter escReciveByCounter){
        EscResponseDto escResponseDto = new EscResponseDto();
        escResponseDto.setEscAppHead(escReciveByCounter.getEscAppHead());
        escResponseDto.setEscSysHead(escReciveByCounter.getEscSysHead());
        escResponseDto.setLocalHead(escReciveByCounter.getLocalHead());
        return escResponseDto;
    }

    public  static EscResponseDto EscResponseDto( ){
        EscResponseDto escResponseDto = new EscResponseDto();
        return escResponseDto;
    }*/
}
